import { Module } from '@nestjs/common';
import { EnterpriseService } from './enterprise.service';
import { EnterpriseController } from './enterprise.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Enterprise } from './entities/enterprise.entity';
import { EnterpriseBackground } from './entities/enterprise-background.entity';
import { Industry } from './entities/industry.entity';
import { Patent } from './entities/patent.entity';
import { Trademark } from './entities/trademark.entity';
import { Executive } from './entities/executive.entity';
import { Favorite } from './entities/favorite.entity';
import { User } from 'src/user/entities/user.entity';
import { DailyCommentStats } from 'src/statistic/entities/dailyCommentStats.entity';
import { EnterpriseSearchStats } from 'src/statistic/entities/enterpriseSearchStats.entity';
import { TopKeywords } from 'src/statistic/entities/topKeywords .entity';
import { DailyKeyStats } from 'src/statistic/entities/dailyKeyStats.entity';
import { NotificationGateway } from 'src/notification/notification.gateway';
import { NotificationModule } from 'src/notification/notification.module';
import { EnterpriseRisk } from './entities/enterprise-risk.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Enterprise,
      EnterpriseBackground,
      Industry,
      Patent,
      Trademark,
      Executive,
      Favorite,
      User,
      EnterpriseSearchStats,
      TopKeywords,
      DailyKeyStats,
      EnterpriseRisk,
    ]),
    NotificationModule,
  ],
  controllers: [EnterpriseController],
  providers: [EnterpriseService, NotificationGateway],
  exports: [EnterpriseService],
})
export class EnterpriseModule {}
